package org.rufolfheszele.andpixelbyandpixel;

import java.util.LinkedList;
import java.util.List;

import android.graphics.Point;

public class Utils
{
	public static List<Point> getPointsAround(Point point, int radius)
	{
		List<Point> result = new LinkedList<Point>();
		
		result.add(new Point(point.x - radius, point.y));
        result.add(new Point(point.x + radius, point.y));
        result.add(new Point(point.x, point.y - radius));
        result.add(new Point(point.x, point.y + radius));
        result.add(new Point(point.x - radius, point.y + radius));
        result.add(new Point(point.x - radius, point.y - radius));
        result.add(new Point(point.x + radius, point.y - radius));
        result.add(new Point(point.x + radius, point.y + radius));

		return result;
	}
}
